﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoleManagement.aspx.cs" Inherits="Hisun.View.Management.RoleManagement" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">
        .style1
        {
            width: 559px;
        }
        .style2
        {
            width: 296px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table style="width:100%;">
            <tr>
                <td class="style1">
                    <asp:Label ID="Label5" runat="server" Text="*角色管理"></asp:Label>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Button ID="Button_Add" runat="server" oncommand="Button_Add_Command" 
                        Text="增加" />
                    <asp:Label ID="Label_RoleInfo" runat="server" Visible="False"></asp:Label>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Panel ID="Panel_RoleList" runat="server" Width="514px">
                        <asp:LinkButton ID="LinkButton_First" runat="server" CommandArgument="First" 
                            OnClick="MyClick">&lt;&lt;</asp:LinkButton>
                        &nbsp;&nbsp;
                        <asp:LinkButton ID="LinkButton_Prev" runat="server" CommandArgument="Prev" 
                            OnClick="MyClick"> &lt;</asp:LinkButton>
                        &nbsp;&nbsp;
                        <asp:LinkButton ID="LinkButton_Next" runat="server" CommandArgument="Next" 
                            OnClick="MyClick">&gt;</asp:LinkButton>
                        &nbsp;&nbsp;
                        <asp:LinkButton ID="LinkButton_Last" runat="server" CommandArgument="Last" 
                            OnClick="MyClick"> &gt;&gt;</asp:LinkButton>
                        <asp:Label ID="Label_Total" runat="server" Text="共："></asp:Label>
                        <asp:Label ID="Label_CurrenPageAndTo" runat="server" Text="页，当前第 页，转到"></asp:Label>
                        <asp:TextBox ID="TextBox_PageIndex" runat="server" Width="26px"></asp:TextBox>
                        <asp:Label ID="Label4" runat="server" Text="页"></asp:Label>
                        <asp:RangeValidator ID="RangeValidator_PageIndex" runat="server" ControlToValidate="TextBox_PageIndex"
                            ErrorMessage="*" MaximumValue="10000" MinimumValue="1" Type="Integer"></asp:RangeValidator>
                        <asp:Button ID="Button_PageGo" runat="server" CommandArgument="GotoPage" OnClick="MyClick"
                            Text="GO" />
                    </asp:Panel>
                        <asp:GridView ID="GridView_Roles" runat="server"  SkinID = "GridView" AutoGenerateColumns="False">
                            <Columns>
                                <asp:BoundField DataField="角色ID" HeaderText="角色ID" ReadOnly="True" 
                                    SortExpression="角色ID" />
                                <asp:BoundField DataField="角色名称" HeaderText="角色名称" ReadOnly="True" 
                                    SortExpression="角色名称" />
                                <asp:CheckBoxField DataField="系统角色" HeaderText="系统角色" ReadOnly="True" 
                                    SortExpression="系统角色" />
                                <asp:CheckBoxField DataField="用户角色" HeaderText="用户角色" ReadOnly="True" 
                                    SortExpression="用户角色" />
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:Button ID="Button_Right" runat="server" 
                                            CommandArgument='<%# Eval("角色ID") %>' oncommand="Button_Right_Command" 
                                            Text="编辑权限" />
                                        <asp:Button ID="Button_Del" runat="server" oncommand="Button_Del_Command" 
                                            Text="删除" CommandArgument='<%# Eval("角色ID") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                        
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td class="style1">
                        
                    </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Panel ID="Panel_Edit" runat="server" Visible="False">
                        <table style="width:100%;">
                            <tr>
                                <td>
                                    <asp:Label ID="Label1" runat="server" Text="角色名称"></asp:Label>
                                </td>
                                <td class="style2">
                                    <asp:TextBox ID="TextBox_Name" runat="server"></asp:TextBox>
                                </td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label2" runat="server" Text="是否系统角色："></asp:Label>
                                </td>
                                <td class="style2">
                                    <asp:CheckBox ID="CheckBox_SystemRole" runat="server" />
                                </td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="Button_Save" runat="server" oncommand="Button_Save_Command" 
                                        Text="保存" />
                                    <asp:Button ID="Button_Cancel" runat="server" oncommand="Button_Cancel_Command" 
                                        Text="取消" />
                                </td>
                                <td class="style2">
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:HiddenField ID="CurrentPage" runat="server" Value="0" />
                                </td>
                                <td class="style2">
                                    <asp:HiddenField ID="EditFlag" runat="server" Value="0" />
                                </td>
                                <td>
                                    <asp:HiddenField ID="RoleInfo" runat="server" Value="0" />
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
